/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.DesignPatterns.structural.FlyWeight;

/**
 *
 * @author 210017252
 */
public class FlyWeightAdder implements FlyWeight{
 
    String operation;

    public FlyWeightAdder() {
        operation="adding"; 
        try{
            Thread.sleep(3000);
        }catch(InterruptedException e){
        e.printStackTrace();
        }
        
        
    }
    
    
    
    @Override
    public void doMath(int a, int b) {
        System.out.println(operation+" "+a+"and"+b+":"+(a+b));
    }
    
}
